/* gomonitor a timeseries database and /debug/vars collector daemon.

 useage: gomonitor --config=monitor.json --http=:8080 --polltime=30 --tsdb=tdb.sqlite

gomonitor will autocreate the tsdb file if it doesn't exist. The polltime is
in seconds. The config file is a json file with a json dict describing a
Config struct. See the docs at ./config/ for details on the fields.

For Example

    {"Specs":[
       {"Name": "site1", U:"http://some.go.binary/debug/vars",
        "Vars":{"var.name":""}},...],
     "Collectors":[
       {
         "Name": "os",
         "Bin": "fully qualified path to collector binary",
         "Args": ["argument to binary",...]
         "Vars": {"var.name:"",...}
       },
       ...
     ]
    }

gomonitor can consume the /debug/vars urls that the net/http/pprof package adds
out of the box. Other collectors can be plugged in using definitions in the
list of Collectors in the Config.

Collectors use a simple line delimited protocol to communicate over
stdin/stdout with the daemon. The are expected to wait for requests from
the server on stdin. When the collector recieves the get command from gomonitor
it should return a json dict with the data it exports. See the included
extern/oscollector for an example.
*/
package main
